********************************************************
*													   *
*			2_mechanism_strikes_app.do	   *
*													   *
********************************************************

/*  ================================  NOTES  ================================

+ PURPSOSE:
	
	In this do-file we use data on strikes 
	to show evidence of the reorganization hypothesis
	

+ Inputs: 

		* strikes.dta
		

==============================  TOP MATTER ==============================*/
	



*set paths
global proc_data "`pdir'/data"
global output "`pdir'/outputs/appendix"




********************************** END HEADER **********************************


use "$proc_data/strikes.dta", clear


*********Table A.9: ************************************************************
*** Strikes were more prevalent in textiles


	
estimates clear
quietly{	
	eststo: reg lntotal_dept_strikes dummy_text, cl(id_dept)
	qui estadd local department_FE ""
	
	eststo: areg lntotal_dept_strikes dummy_text, cl(id_dept) abs(id_dept)
	qui estadd local department_FE "\cmark"
	
	eststo: areg lntotal_dept_strikes dummy_text lnL_total, cl(id_dept) abs(id_dept)
	qui estadd local department_FE "\cmark"
	
	eststo: reg lntotal_dept_strikes dummy_text lnL_total lnL_all_sectors, cl(id_dept)	
	qui estadd local department_FE ""
}

estout using "$output/Tables/Table_A9.tex", replace label order($show dummy_text lnL_total lnL_all_sectors) drop(_cons)	///
prefoot("\hline") stats(r2 N department_FE, layout(@ "\multicolumn{1}{c}{@}") fmt(2 %9.0g 0) labels("R$^2$" "N" "Department FE")) ///
		mlabels(, title prefix(%) begin(%)) postfoot("\addlinespace[0.1cm] ") end("\\[-0.15cm]") ///
		varlabels(,end("\addlinespace[0.2cm] ")) ///
		cells(b(fmt(3) star) se(fmt(3) par)) starlevels($^{*}$ 0.1 $^{**}$ 0.05 $^{***}$ 0.01) style(tex) collabels(none) 	
		